package com.example.text.service;



import com.example.text.entity.Inware;
import com.example.text.entity.Result;
import com.example.text.entity.Ware;
import com.example.text.mapper.InWareMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InWareService {
    @Autowired
    InWareMapper inWareMapper;


    public List<Inware> selectAllOrder() {
        return inWareMapper.selectAllOrder();
    }

    public Inware selectByOrder(String inWareOrder) {
        return  inWareMapper.selectByOrder(inWareOrder);
    }


    public void deleteOrder(Integer inWareId) {
        inWareMapper.deleteOrder(inWareId);

    }

    public Result insertWare(Inware inware) {
        inWareMapper.insert(inware);

        return Result.success();

    }
}
